package com.atguigu.boot.controller;

import com.atguigu.boot.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigController {

    @Autowired
    private Student student;

    @GetMapping("/get/student/data")
    public Student getStudent() {
        return student;
    }

}
